package org.xy.yq.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.xy.yq.entity.Province;

import java.util.List;

public interface IProvince {
    @Insert("insert into province(name,value,cureNum,econNum,deathNum,time) values(#{name},#{value}" +
            ",#{cureNum},#{econNum},#{deathNum},#{time})")
    void insertProvince(Province province);
    @Select("select * from province")
    List<Province> selectAll();
    @Select("select * from province order by econNum desc limit 0,5")
    List<Province> top5();
}
